<?php

/**
 * @author Du Dan
 * @copyright 2013
 */

class Header extends CWidget
{
    public function init()
    {
        parent::init();
    }

    public function run()
	{
		$search = new SearchForm;
		$model = new LoginForm;
        $categories = Categories::model()->findAll('parent_id=0');
    	$this->render('header', array(
			'search'=>$search,
			'model'=>$model,
            'categories'=>$categories
		));  
    }
}

?>